package com.woniuxy.bookmall.mapper;

import com.woniuxy.bookmall.entity.TArea;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface TAreaMapper extends Mapper<TArea> {

    @Select("select * from t_area where cityCode = #{value}")
    List<TArea> selectAreaByCity(String code);

    @Select("select * from t_area where code = #{value}")
    TArea selectAreaNameByCode(String code) ;
}